﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using FluentNHibernate.Automapping.Alterations;
using FluentNHibernate.Automapping;

namespace Domain.Model.Mapping.Overrides
{
    public class ProjectDetailMappingOverride : IAutoMappingOverride<ProjectDetail>
    {
        public void Override(AutoMapping<ProjectDetail> mapping)
        {
            mapping.References<Project>(x => x.Project)
                .Column("ProjectId");
        }
    }
}